package edu.whu;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

public class Myclass {
    @com.example.InitMethod

    public void init() {
        System.out.println("Init method called");
        System.out.println("注解有用");
    }
    private  int age=1;
    @com.example.InitMethod
    public void ageout() {
        System.out.println(age);
        System.out.println("注解有用");
    }
    @com.example.InitMethod
    public void ageplus() {
        System.out.println(2*age);
        System.out.println("注解有用");
    }

}
